package com.abxh.jetpack.room.bean;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

/**
 * Created by dab on 2021/9/2 13:50
 */
@Entity(tableName = "users")
public class User {
    @PrimaryKey(autoGenerate = true)
    public int uid;

    @ColumnInfo(name = "name")
    public String name;

    @ColumnInfo(name = "age")
    public int age;

    public User() {

    }
    @Ignore
    public User(int uid, String name, int age) {
        this.uid = uid;
        this.name = name;
        this.age = age;
    }
}
